﻿<Window x:Class="QLHH.Login"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Login" Height="280" Width="420" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="72"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <Image Height="72" Grid.Row="0" Name="image1" Stretch="Fill" Source="images\logo.JPG"/>
        <Grid Grid.Row="1" Margin="10">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Label Content="Tên người dùng" Height="27" Grid.Row="0" Grid.Column="0"/>
            <ComboBox Text="admin" Height="23" Name="cbTenNguoiDung" IsEditable="True" Grid.Row="0" Grid.Column="1"/>
            <Label Content="Mật Khẩu" Grid.Row="1" Grid.Column="0"/>
            <PasswordBox Password="123456" Height="23" Name="pbMauKhau" Grid.Row="1" Grid.Column="1"/>
            <CheckBox Content="Nhớ Mật khẩu" Height="19" Grid.Row="2" Grid.Column="1"/>
        </Grid>
        <Expander Expanded="Expander_Expanded" Collapsed="Expander_Collapsed" Header="Cơ sở dữ liệu" Height="120" Grid.Row="2">
            <Grid Grid.Row="1" Margin="10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto"/>
                    <RowDefinition Height="auto"/>
                    <RowDefinition Height="auto"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Label Content="Máy chủ" Height="23" Grid.Row="0" Grid.Column="0"/>
                <ComboBox Text="localhost" Height="23" Name="cbMayChu" IsEditable="True" Grid.Row="0" Grid.Column="1"/>
                <Label Content="Tên người dùng" Height="27" Grid.Row="1" Grid.Column="0"/>
                <ComboBox Text="sa" Height="27" Name="cbTenNguoiDungMC" IsEditable="True" Grid.Row="1" Grid.Column="1"/>
                <Label Content="Mật khẩu" Height="27" Grid.Row="2" Grid.Column="0"/>
                <PasswordBox Password="sa" Height="23" Name="pbMatKhauMC" Grid.Row="2" Grid.Column="1"/>
            </Grid>
        </Expander>
        <Border BorderBrush="Silver" BorderThickness="1" Height="1" Grid.Row="3" Margin="10"/>
        <Button Content="Đồng ý" Height="23" HorizontalAlignment="Right" Margin="0,0,100,11" Name="btDongY" Width="80" Grid.Row="4" Click="btDongY_Click" />
        <Button Content="Thoát" Height="23" HorizontalAlignment="Right" Margin="0,0,13,11" Name="btThoat" Width="80" Grid.Row="4" Click="btThoat_Click" />
    </Grid>
</Window>
